home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 16 / AMIGAplus Sonderheft 16 (1998)(ICP)(DE)[!].iso / pd / anwendungen / xpk_source / xpkmaster / smakefile < prev    next >
Makefile  |  1998-08-27  |  2KB  |  69 lines

  1. SCOPTS = RESOPT PARM=R NOSTKCHK STRINGMERGE UCHAR NOCHKABORT OPT OPTSIZE \
  2.     OPTINLOCAL NOICONS MEMSIZE=HUGE DATA=FO DEBUG=LINE UTILITYLIBRARY
  3. SLOPTS = NOICONS SMALLCODE SMALLDATA \
  4.     LIB /Include/SDI_ASM_STD_functions.lib \
  5.     STRIPDEBUG
  6.  
  7. # NOTE: remove STRIPDEBUG, when libraries should have line debug
  8. #    information, for release version STRIPDEBUG should be on always
  9.  
  10. # When any later time the standard library is needed, the field
  11. # LIB LIB:scnb.lib must be added to SLOPTS
  12.  
  13. FILES= All.c checksum.c fault.c fib.c hook.c hook_fh.c hook_mem.c \
  14.     objects.c open.c password.c progress.c query.c sublibs.c tags.c \
  15.     xbuf.c xpkmaster.c xpkmaster.h texts.c texts.h version.h
  16.  
  17. ODIR = //xpk_Binary/
  18.  
  19. Main: XPK4 XPKDEBUG
  20.  
  21. All: Main XPK XPKDEBUG4
  22.  
  23. XPK:       $(ODIR)xpkmaster.libraryN4
  24. XPKDEBUG:  $(ODIR)xpkmaster.libraryDEBUG
  25. XPK4:       $(ODIR)xpkmaster.library
  26. XPKDEBUG4: $(ODIR)xpkmaster.libraryDEBUG4
  27.  
  28. # ******* object files *******
  29.  
  30. $(ODIR)debug.o: debug.c xpkmaster.h
  31.     sc $(SCOPTS) debug.c OBJNAME=$@
  32.  
  33. $(ODIR)libinit.o: libinit.c version.h xpkmaster.h
  34.     sc $(SCOPTS) libinit.c OBJNAME=$@ IGNORE=315
  35.  
  36. $(ODIR)libinit_d.o: libinit.c version.h xpkmaster.h
  37.     sc $(SCOPTS) libinit.c DEFINE=DEBUG OBJNAME=$@ IGNORE=315
  38.  
  39. $(ODIR)All.o: $(FILES)
  40.     sc $(SCOPTS) All.c OBJNAME=$@
  41.  
  42. $(ODIR)All_d.o: $(FILES)
  43.     sc $(SCOPTS) NOOPT All.c DEFINE=DEBUG OBJNAME=$@
  44.  
  45. $(ODIR)All_4.o: $(FILES)
  46.     sc $(SCOPTS) DEFINE=SUPPORT_A4 All.c OBJNAME=$@
  47.  
  48. $(ODIR)All_4d.o: $(FILES)
  49.     sc $(SCOPTS) NOOPT All.c DEFINE=SUPPORT_A4 DEFINE=DEBUG OBJNAME=$@
  50.  
  51. # ******* libraries creation *******
  52.  
  53. $(ODIR)xpkmaster.libraryN4: $(ODIR)libinit.o $(ODIR)All.o
  54.     slink FROM $(ODIR)libinit.o $(ODIR)All.o $(SLOPTS) TO $@
  55.  
  56. $(ODIR)xpkmaster.library: $(ODIR)libinit.o $(ODIR)All_4.o
  57.     slink FROM $(ODIR)libinit.o $(ODIR)All_4.o $(SLOPTS) TO $@
  58.  
  59. $(ODIR)xpkmaster.libraryDEBUG: $(ODIR)libinit_d.o $(ODIR)All_d.o \
  60.                    $(ODIR)debug.o
  61.     slink FROM $(ODIR)libinit_d.o $(ODIR)All_d.o $(ODIR)debug.o \
  62.     $(SLOPTS) LIB LIB:debug.lib LIB:ddebug.lib LIB:amiga.lib TO $@
  63.  
  64. $(ODIR)xpkmaster.libraryDEBUG4: $(ODIR)libinit_d.o $(ODIR)All_4d.o \
  65.                 $(ODIR)debug.o
  66.     slink FROM $(ODIR)libinit_d.o $(ODIR)All_4d.o $(ODIR)debug.o \
  67.     $(SLOPTS) LIB LIB:debug.lib LIB:ddebug.lib LIB:amiga.lib TO $@
  68.  
  69.